﻿using MVCTest.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MVCTest.Models;

namespace MVCTest.Models
{
    public class MusicStoreDblnitializer:System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB>
    {
        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "爵士" });
            context.Genres.Add(new Genre { Name = "流行" ,Description="流行音乐"});

            base.Seed(context);
        }
    }
}